package uoit.csci2020u.tutorial3;

import java.util.*;

public class TestSortPerf {
	public static void main(String[] args) {
		int count = Integer.parseInt(args[0]);
		MakeNumber mknums = new MakeNumber();
		List<Float> nums = mknums.makeRandomNumbers(count, 10f);
		
		LinkedList<Float> linkedList = mknums.makeLinkedList(nums);
		ArrayList<Float> arrayList = mknums.makeArrayList(nums);
		Vector<Float> vector = mknums.makeVector(nums);
		
		System.out.println("LinkedList took " + mknums.sortList(linkedList) + "ms");
		System.out.println("ArrayList took " + mknums.sortList(arrayList) + "ms");
		System.out.println("Vector took " + mknums.sortList(vector) + "ms");
	}
}
